package com.tgy.service;

import com.tgy.dao.UserDao;
import com.tgy.dao.UserDaoImpl;

/***
 * @ClassName: UserServiceImpl
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 15:09 2021/12/16
 * @version : V1.0
 */
public class UserServiceImpl implements UserService{
    //private UserDao userDao = new UserDaoImpl();
    private UserDao userDao;
    @Override
    public void getUser() {
        userDao.getUser();
    }

    //用户控制值的注入,利用set实现动态注入
    public void setUserDao(UserDao userDao){
        this.userDao = userDao;
    };
}
